/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cx1.service.api;

import java.util.List;
import org.cx1.model.utils.ServiceResponse;
import org.cx1.model.User;

/**
 *
 * @author ECH
 */
public interface IUserService {
    
    public ServiceResponse<String> create(User user);
    
    public ServiceResponse<List<User>> readAll(int offset, int limit);
        
    public ServiceResponse<User> read(String id);
    
    public ServiceResponse<Boolean> update(User user);
    
    public ServiceResponse<Boolean> delete(String id);
           
    public ServiceResponse<Boolean> refreshLastLogin(String id);
    
    public ServiceResponse<List<User>> readDormatUsers();
    
    public ServiceResponse<User> readByEmail(String email);
    
}
